/**
 * 自动生成！请勿修改！
 */
import { command } from '../core/command';

class VacuumSealer {
    constructor(opt = {}) {
        const { device, to, ...opts } = opt;

        this.device = device || {};
        this.opts = opts || {};
        this._to = to;
    }

    get categoryCode() {
        return '010050064';
    }

    get categoryName() {
        return '\u771f\u7a7a\u5c01\u53e3\u673a';
    }

    getMode(params) {
        return command({
            method: 'getMode',
            methodId: 'p1vZQkRq',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getSwitch(params) {
        return command({
            method: 'getSwitch',
            methodId: 'pGoxpqQb',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setMode(params) {
        return command({
            method: 'setMode',
            methodId: 'ppAX3iJ3',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setStart(params) {
        return command({
            method: 'setStart',
            methodId: 'pUPQLHyG',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setStop(params) {
        return command({
            method: 'setStop',
            methodId: 'pZgRrvXx',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setSwitch(params) {
        return command({
            method: 'setSwitch',
            methodId: 'peH3bysV',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }
}

export default VacuumSealer;
